package Runde2;

public class Exam extends Activity {
	
	
	/**
	 * Creates a new exam.
	 * 
	 * @param supv -  Person (Professor) responsible for this exam.
	 * @param lva The number of the course this exam belongs to.
	 * @param max Maximum number of participants.
	 * @throws InsufficientPermissionsException - thrown if given Person isn't a professor
	 */
	public Exam(Person supv, int lva, int max, String pw) throws InsufficientPermissionsException {
		super(supv,lva,max, pw);
		if (!(supv instanceof Professor)) {
			throw new InsufficientPermissionsException("supervisor of exam must be a professor");
		}
	}

}